/* 
 * Copyright [2018] [Alex/libo(liboms@hotmail.com)]
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *  http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.hyts.apidoc.analysis;

import com.hyts.apidoc.model.ApiDoc;
import com.sun.javadoc.MethodDoc;
import com.sun.javadoc.Tag;

/** 
 * @title AnalysisEngine.java  
 * @package com.hyts.apidoc.analysis  
 * @description TODO  
 * @author libo/Alex
 * @email liboms@hotmail.com/liboware@163.com  
 * @date 2018年4月23日 
 * @version V1.0 
 */
public class AnalysisEngine {
	
	/**  
	 * <b>TODO(方法功能的描述)</b>
	 * <p>TODO(这里用一句话描述这个方法的作用)</p>
	 * @param tags 标签集合
	 * @return ApiDoc
	 * @exception
	 */ 
	public static ApiDoc analysisTypeHeader(Tag[] tags) {
		return new AnalysisTemplate(new ApiDoc(),tags).injectTypeHeader().getApiDoc();
	}

	/**
	 * @author:Alex/Libo
	 * @create-date:2018/10/26
	 * @create-time:21:53
	 * @method-name:
	 * @param:
	 * @return:
	 * @description:a
	 */
	public static ApiDoc analysisMethodHeader(Tag[] tags,ApiDoc apiDoc) {
		return new AnalysisTemplate(apiDoc,tags).injectMethodHeader().getApiDoc();
	}
	
	
	public static ApiDoc analysisMethodHeader(MethodDoc methodDoc,ApiDoc apiDoc,Tag[] tags) {
        return new AnalysisTemplate(methodDoc,apiDoc,tags).injectMethodHeader().getApiDoc();
    }
	
	public void analysis(String analysisComment) {
	}
}
